package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;

import java.util.Set;

public interface PermissionDao {
    Set<Permission> findPermissionByRoleId(Integer roleId);

    Page<Permission> findAllByPage(String queryString);

    void addPermission(Permission permission);

    void deleteById(String id);

    void editPermission(Permission permission);

    Permission findById(String id);
}
